const mongoose = require("mongoose");
mongoose.connect("mongodb://localhost/blog");
  mongoose.connection.on("open",()=>{
      console.log("连接打开")
  })

 